package com.buli.blmall.admin.core.security.token;

import org.springframework.security.authentication.AbstractAuthenticationToken;

/**
 * @author xiang.gao
 * @date 2025/2/28 19:08
 */
public class PhoneSmsAuthToken extends AbstractAuthenticationToken {

    private Object principal;
    private Object credentials;

    public PhoneSmsAuthToken(Object principal, Object credentials) {
        super(null);
        this.principal = principal;
        this.credentials = credentials;
    }

    @Override
    public Object getCredentials() {
        return credentials;
    }

    @Override
    public Object getPrincipal() {
        return principal;
    }


}
